<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.0-beta.7/vue.global.prod.min.js"></script>
    <script src="https://unpkg.com/ming_mock/index.js"></script>
    <title>Document</title>
</head>
<body>
<div id="root">
    <div>我的openid ===> {{openid}}</div>

    <button @click="goIndex">去主页</button>
</div>

</body>
</html>

<script>
    const {createApp}=Vue;
    let vueApp= createApp({
        data() {
            return { openid: ""}
        },
        mounted() {
           this.openid=M.getParameter("openid");

        },
        methods:{
            goIndex(){
                location.href="/index.html"
            }
        }
    });
    vueApp.mount('#root');
</script>



